<?php
/**
 * Created by PhpStorm.
 * User: EZ
 * Date: 2017/7/3
 * Time: 10:17
 */
namespace App\Http\Controllers\Index;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use App\Model\Admin;
class IndexController extends Controller{


    public function index(){

        $res= DB::table('admin')->where('id','>',6)->get();
        p(json_decode(json_encode($res),true));die;
//       $res= Admin::get();
//        p(json_decode(json_encode($res),true));die;


        return view('Index/index');
    }




}